home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 26.zip / BS1 part 26 / Aztec C v5.2a disk 4.adf / incl52.lzh / sgtty.h < prev    next >
C/C++ Source or Header  |  1991-05-22  |  2KB  |  43 lines

  1. /* Copyright 1987 Manx Software Systems, Inc */
  2.  
  3. #ifndef __SGTTY_H
  4. #define __SGTTY_H
  5.  
  6. #define TIOCGETP    0    /* get sgttyb structure */
  7. #define TIOCSETP    1    /* set sgttyb structure; flush input/typeahead */
  8. #define TIOCSETN    2    /* set sgttyb structure; don't flush input/typeahead */
  9. #define    TIOCNTLC    3    /* check for control C */
  10. #define TIOCGETC    4    /* get tchars structure */
  11. #define TIOCSETC    5    /* set tchars structure */
  12. #define TIOCFLUSH    6    /* flush input/typeahead queues */
  13.  
  14. struct sgttyb {
  15.     short sg_flags;        /* control flags */
  16.     char sg_erase;        /* defaults to BACKSPACE */
  17.     char sg_kill;        /* defaults to ^U */
  18. };
  19.  
  20.  
  21. /* settings for sg_flags */
  22. #define    TABSIZ    0x000f    /* size of tab if XTABS is set */
  23. #define    XTABS    0x0010    /* convert tabs to spaces on output */
  24. #define    CRMOD    0x0020    /* CR -> LF on input, LF -> CR/LF on output */
  25. #define    ECHO    0x0040    /* echo input to output */
  26. #define    ECHOE    0x0080    /* follow erase character by space, BS */
  27. #define    CBREAK    0x0100    /* don't wait for the whole line */
  28. #define    NODELAY    0x0200    /* return even if no characters */
  29. #define RAW        0x0400    /* no input or output mapping at all */
  30. #define    CHKKEY    0x0800    /* check for keyboard characters during output */
  31. #define    ERASE    0x1000    /* erase character space before drawing */
  32.  
  33. struct tchars {
  34.     char t_intrc;        /* interrupt - ^C (not [yet] implemented) */
  35.     char t_quitc;        /* quit - ^\ (not [yet] implemented) */
  36. /*    char t_startc;        /* start output (not supported) */
  37. /*    char t_stop;        /* stop output (not supported) */
  38.     char t_eofc;        /* end-of-file - ^D */
  39. /*    char t_brck;        /* input delimiter (like nl) (not supported) */
  40. };
  41.  
  42. #endif
  43.